/**
 * 
 * DIRECTV PROPRIETARY
 * Copyright© 2014 DIRECTV, INC.
 * UNPUBLISHED WORK
 * ALL RIGHTS RESERVED
 * 
 * This software is the confidential and proprietary information of
 * DIRECTV, Inc. ("Proprietary Information").  Any use, reproduction, 
 * distribution or disclosure of the software or Proprietary Information, 
 * in whole or in part, must comply with the terms of the license 
 * agreement, nondisclosure agreement or contract entered into with 
 * DIRECTV providing access to this software.
 */
package com.direct.ratelimit.utils;

import java.lang.reflect.InvocationTargetException;

/**
 * simple wrapper around beanutils
 * 
 * @author srstone
 * 
 */
public class BeanUtils {

	public static <T> T clone(T object) {

		try {
			return (T) org.apache.commons.beanutils.BeanUtils.cloneBean(object);
		} catch (Throwable e) {
			// TODO Auto-generated catch block
			throw new RuntimeException(e);
		}
	}

}
